package com.bsj.pay.model;

import com.bsj.pay.util.json.serializer.DateTimeJsonSerializer;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;

import java.io.Serializable;

/**
 * 支付链接池
 * @TableName pay_pool
 */
public class PayPoolBean implements Serializable {
    /**
     * 
     */
    private Long id;

    /**
     * 商品id
     */
    private Long goods_id;

    private Integer amount;

    /**
     * 支付类型
     */
    private String pay_type;

    /**
     * 支付链接
     */
    private String pay_url;

    /**
     * cookies
     */
    private String cookies;

    /**
     * notifyToken 支付宝
     */
    private String notify_token;

    private String order_no;

    /**
     * 1未使用， 0已使用
     */
    private Integer status;

    private Long pay_goods_id;

    /**
     * 失效时间
     */
    @JsonSerialize(using = DateTimeJsonSerializer.class )
    private Long expire_time;

    private static final long serialVersionUID = 1L;

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    /**
     * 商品id
     */
    public Long getGoods_id() {
        return goods_id;
    }

    /**
     * 商品id
     */
    public void setGoods_id(Long goods_id) {
        this.goods_id = goods_id;
    }

    /**
     * 支付链接
     */
    public String getPay_url() {
        return pay_url;
    }

    /**
     * 支付链接
     */
    public void setPay_url(String pay_url) {
        this.pay_url = pay_url;
    }

    public Long getExpire_time() {
        return expire_time;
    }

    public void setExpire_time(Long expire_time) {
        this.expire_time = expire_time;
    }

    public String getCookies() {
        return cookies;
    }

    public void setCookies(String cookies) {
        this.cookies = cookies;
    }

    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }

    public String getPay_type() {
        return pay_type;
    }

    public void setPay_type(String pay_type) {
        this.pay_type = pay_type;
    }

    public Long getPay_goods_id() {
        return pay_goods_id;
    }

    public void setPay_goods_id(Long pay_goods_id) {
        this.pay_goods_id = pay_goods_id;
    }

    public String getNotify_token() {
        return notify_token;
    }

    public void setNotify_token(String notify_token) {
        this.notify_token = notify_token;
    }

    public String getOrder_no() {
        return order_no;
    }

    public void setOrder_no(String order_no) {
        this.order_no = order_no;
    }

    public Integer getAmount() {
        return amount;
    }

    public void setAmount(Integer amount) {
        this.amount = amount;
    }
}